# @Time    :2025/4/1 21:04
# 如果 a+b+c=1000,且 a^2+b^2=c^2,则a,b,c可能的组合是？
import time

start_time = time.time()
for a in range(1, 1000):
    for b in range(1, 1000):
        c = 1000 - a - b
        if a ** 2 + b ** 2 == c ** 2:
            print(a, b, c)
end_time = time.time()
print(end_time - start_time)
